/* 
 * File:   m_thread.h
 * Author: tangchao
 *
 * Created on 2013年6月13日, 下午2:22
 */

#ifndef M_THREAD_H
#define	M_THREAD_H

#ifdef	__cplusplus
extern "C"
{
#endif
#include "m_staff.h"

    typedef struct _m_thread_data m_thread_data;

    enum THREAD_ROLE
    {
        THREAD_SERVER_MANAGER, THREAD_LOG_MANAGER, THREAD_MONITOR
    };

    struct _m_thread_data
    {
        long long posix_thread_id; /* pthread_self() */
        long long linux_thread_id; /* syscall(__NR_gettid) */
        enum THREAD_ROLE role;
        host_member *host_list;
    } NG_THD;
    
#ifdef	__cplusplus
}
#endif

#endif	/* M_THREAD_H */

